package tech.cyhk.cloud.demo.order.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author swd
 * @date 2025/1/20
 */
//fallback 需要配合sentinel等熔断组件
@FeignClient(name = "service-product", path = "/product", fallback = ProductFeignClientFallback.class)
public interface ProductFeignClient {
    @GetMapping("/hello")
    String hello();
}
